from django.db import models


class StatusFiled(models.Model):
    status = models.IntegerField(
        verbose_name="状态", choices=((1, True), (0, False)), default=0, blank=False
    )

    class Meta:
        abstract = True


class ActiveFiled(models.Model):
    active = models.BooleanField(verbose_name="状态", default=False)

    class Meta:
        abstract = True


class ConditionFiled(models.Model):
    active = models.SmallIntegerField(
        verbose_name="状态", default=1, choices=((1, "激活"), (0, "删除"))
    )

    class Meta:
        abstract = True
